imu_sources = [
    'imu.cpp',
]

libimu = shared_library(
  'dev_imu',
  imu_sources,
  include_directories: dev_inc_dir,
  dependencies: [libmcpp_deps, ipmb_dep],
  install: true,
  install_dir: lib_dir,
)

libimu_dep = declare_dependency(
  link_with: libimu,
  dependencies: [libmcpp_deps, ipmb_dep]
)

install_headers([
  'imu.h',
], install_dir: install_inc_dir / 'imu')

if build_tests and meson_build
  custom_target(
    'copy_dev_imu',
    output: 'copy_dev_imu',
    command: ['cp', libimu.full_path(), lib_dir],
    depends: libimu,
    build_by_default: true,
  )
endif